package com.weddingee.util;
import com.weddingee.dao.base.BaseDao;
import com.weddingee.dao.home.HomeDao;
import com.weddingee.dao.home.NewsDao;
import com.weddingee.dao.home.OtherDao;
import com.weddingee.dao.home.PhotoDao;
import com.weddingee.dao.home.PhotoGroupDao;
import com.weddingee.dao.user.UserDao;
public class DaoFactory {
 private int type;
 
 public static BaseDao create(int type){
	 if(type==1){
		 return new HomeDao();
	 }
	 if(type==2){
		 return new NewsDao();
	 } 
	 if(type==3){
		 return new OtherDao();
	 }
	 if(type==4){
		 return new PhotoDao();
	 }
	 if(type==5){
		 return new PhotoGroupDao();
	 }
	 if(type==6){
		 return new UserDao();
	 }
	 else
		 return new HomeDao();
 }
 
	
	
}